<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>KingBes Admin 1.0</title>
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    {include file="public/link" /}
    <link rel="stylesheet" href="__admin__/css/admin.css">
</head>

<body class="admin">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo layui-hide-xs">KingBes Admin</div>
            <!-- 头部区域（可配合layui 已有的水平导航） -->
            <ul class="layui-nav layui-layout-left">
                <!-- 菜单收展 -->
                <li class="layui-nav-item" kb-event="menuLeft">
                    <a href="javascript:;" title="菜单收展"></a>
                </li>
                <!-- 前台页面 -->
                <li class="layui-nav-item">
                    <a href="/" target="_blank" title="前台页面">
                        <i class="layui-icon layui-icon-website"></i>
                    </a>
                </li>
                <!-- 刷新页面 -->
                <li class="layui-nav-item" kb-event="refresh">
                    <a href="javascript:;" title="刷新">
                        <i class="layui-icon layui-icon-refresh-3"></i>
                    </a>
                </li>
            </ul>
            <ul class="layui-nav layui-layout-right">
                <!-- 消息中心 -->
                <li class="layui-nav-item">
                    <a href="javascript:;" title="消息中心">
                        <i class="layui-icon layui-icon-notice"></i>
                    </a>
                </li>
                <!-- 主题样式 -->
                <li class="layui-nav-item" kb-event="layui_theme_css">
                    <a href="javascript:;" title="主题">
                        <i class="layui-icon layui-icon-light"></i>
                    </a>
                </li>
                <!-- 全屏开关 -->
                <li class="layui-nav-item" kb-event="fullscreen">
                    <a href="javascript:;" title="全屏">
                        <i class="layui-icon layui-icon-screen-full"></i>
                    </a>
                </li>
                <!-- 个人中心 -->
                <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
                    <a href="javascript:;">
                        <img src="__admin__/images/logo.png" class="layui-nav-img">
                        KingBes
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">基本资料</a></dd>
                        <dd><a href="javascript:;">退出登录</a></dd>
                    </dl>
                </li>
                <!-- 右侧菜单 -->
                <li class="layui-nav-item" kb-event="menuRight" lay-unselect>
                    <a href="javascript:;" title="右侧菜单">
                        <i class="layui-icon layui-icon-more-vertical"></i>
                    </a>
                </li>
            </ul>
        </div>
        <div class="layui-side">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="menuLeft">
                    <!-- API生成 遍历菜单 -->
                </ul>
            </div>
        </div>
        <div class="layui-body">
            <!-- 内容主体区域 -->
            <div class="layui-tab layui-tab-card" lay-allowclose="true" lay-filter="menuTab">
                <ul class="layui-tab-title">
                    <li class="layui-this not-del">
                        <i class="layui-icon layui-icon-home"></i>
                        数据表
                    </li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <iframe src="{:url('table/query')}" frameborder="0" scrolling="yes" width="100%"
                            height="100%"></iframe>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-footer">
            <!-- 底部固定区域 -->
            KingBes Admin 1.0
        </div>
    </div>
    <!-- 加载动画 -->
    <div class="loader-main">
        <!-- 动 画 对 象 -->
        <img src="__admin__/images/loading.gif" alt="loader-main">
    </div>
</body>
{include file="public/script" /}
<script>
    layui.use(["admin"], () => {
        let admin = layui.admin

        // 渲染
        admin.render({
            menu_api: "{:url('index/menu')}", // 菜单接口
            theme_api: "__admin__/theme.json", // 主题接口
        })
    })
</script>

</html>